package com.levy.utils.redis;

/**
 * redis工具类(适合集群redis服务器)
 */
public class RedisClusterUtil {
	
	private static RedisConnector redisConnector;

	public RedisClusterUtil() {
	}
	
	public static RedisConnector getInstance() {
		if (redisConnector == null) {
			return new RedisConnector();
		}else{
			return redisConnector;
		}
	}

	public static void main(String[] args) {
		RedisConnector redis = RedisClusterUtil.getInstance();
		redis.putData("ddss","倪倪飞飞");

	}
	

}
